package po.coursepo;

import java.io.Serializable;
import java.rmi.RemoteException;

public class CourseID implements Serializable{
	String id;
	boolean format;
	
	public CourseID(String s)throws RemoteException{
		if(s.length()==9&&s.matches("\\d+")){
			format = true;
			id = s;
		}
		else
			format = false;
	}
	
	public CourseID()throws RemoteException{
		
	}
	
	public String getID	()throws RemoteException{
		return id;
	}
}
